cmake_minimum_required(VERSION 4.0)

find_package(cmake-bare REQUIRED PATHS node_modules/cmake-bare)
find_package(cmake-fetch REQUIRED PATHS node_modules/cmake-fetch)

project(bare_buffer C)

fetch_package("github:holepunchto/libutf#f7711c9")
fetch_package("github:holepunchto/libbase64#995e3b5")
fetch_package("github:holepunchto/libhex#5e59a5c")

add_bare_module(
  bare_buffer
  SOURCES
    binding.c
  LINK
    utf::<TYPE>
    base64::headers
    hex::headers
)
